﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="He.Web.manage.template.list" %>
<%@ Register Src="../_uc/head_list.ascx" TagPrefix="uc" TagName="head_list" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>模版列表</title>
<uc:head runat="server" ID="uchead" />
<uc:head_list runat="server" ID="uchead_list" />
<script type="text/javascript">
        //放大图片
        $(function () {
            var x = 10;
            var y = -100;
            $(".imgtip").mouseover(function (e) {
                this.myTitle = this.title;
                this.title = "";
                var imgtip = "<div id='imgtip'><img src='" + $(this).attr("bigimg") + "' width='200' alt='预览图'/><\/div>"; //创建 div 元素
                $("body").append(imgtip); //把它追加到文档中						 
                $("#imgtip")
			    .css({
			        "top": (e.pageY + y) + "px",
			        "left": (e.pageX + x) + "px"
			    }).show("fast");   //设置x坐标和y坐标，并且显示
            }).mouseout(function () {
                this.title = this.myTitle;
                $("#imgtip").remove();  //移除 
            }).mousemove(function (e) {
                $("#imgtip")
			    .css({
			        "top": (e.pageY + y) + "px",
			        "left": (e.pageX + x) + "px"
			    });
            });
        });
    </script>
</head>
<body style="padding: 10px;">
<form id="form1" runat="server">
  <div class="navigation"> <b>您当前的位置：首页 &gt; 模版管理&gt;模版列表</b> </div>
  <div class="spClear"> </div>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
    <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
      <HeaderTemplate>
        <tr>
          <%--<th width="30">
                        选择
                    </th>--%>
          <th> 模板名称 </th>
          <th width="13%"> 作者 </th>
          <th width="16%"> 创建日期 </th>
          <th width="12%"> 版本号 </th>
          <th width="12%"> 适用版本 </th>
          <th width="8%"> 状态 </th>
          <th width="5%"> 操作 </th>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr>
          <%--<td align="center">
                        <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" /><asp:HiddenField ID="hideSkinName"
                            runat="server" Value='<%#Eval("skinname") %>' />
                    </td>--%>
          <td>&nbsp;
            <asp:Label ID="lb_id" runat="server" Text='<%#Eval("name")%>'></asp:Label>
            <img src="../images/icon_view.gif" bigimg="<%#Eval("img")%>" title="查看预览图" class="imgtip" /> </td>
          <td><%#Eval("author")%> </td>
          <td><%#Eval("createdate")%> </td>
          <td><%#Eval("version")%> </td>
          <td><%#Eval("fordntver")%> </td>
          <td><asp:ImageButton ID="ibtnSet" CommandName="ibtnSet" runat="server" ImageUrl='<%# siteinfo.Template == Eval("name").ToString() ? "../Images/ico-2.png" : "../Images/ico-2_.png"%>'
                            ToolTip='<%#siteinfo.Template == Eval("name").ToString() ? "" : "启用模版"%>' />
          </td>
          <td><a href="file_list.aspx?skin=<%#Eval("name") %>">管理</a> </td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
  </table>
  <div class="spClear"> </div>
</form>
</body>
</html>
